package com.gzone.contentprovider.sql.dao;

import java.util.ArrayList;

import com.gzone.contentprovider.sql.model.Persistent;

public interface DAO<T extends Persistent> {
	public void insert(T object);
	public void update(T object);
	public void delete(T object);
	public void deleteAllRow();
	public T findById(int id);
	public ArrayList<T> findAll();
	public ArrayList<T> findByParameter(String paraName, Object value);
	public ArrayList<T> findAllToUpdate();
	public ArrayList<T> readJSONData(String data);
}
